package org.ligson.spark.util;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;

public class SparkContextUtil {
    public static JavaSparkContext getLocalContext() {
        SparkConf conf = new SparkConf().setMaster("local").setAppName("HelloSpark");
        return new JavaSparkContext(conf);
    }
}
